<?php
/**
 * Created by PhpStorm.
 * User: Thans
 * Date: 2018/6/9
 * Time: 下午10:54
 */

namespace app\admin\controller\view;


use app\common\controller\Admin;

class UserController extends Admin
{
    public function index(){
        return $this->fetch();
    }

    public function admins(){
        return $this->fetch();
    }

    public function addUser(){
        return $this->fetch();
    }

    public function editUser($id=''){
        if(!$id){
            $this->error('参数错误');
        }
        $this->assign('id',$id);
        return $this->fetch();
    }

    public function addAdmin(){
        return $this->fetch();
    }
    public function editAdmin($id){
        if(!$id){
            $this->error('参数错误');
        }
        $this->assign('id',$id);
        return $this->fetch();
    }

}